# -*- coding: utf-8 -*-

# Copyright(c) 2011 OpenDomo Services SL. Licensed under GPL v3 or later
# Isidro Catalan <icatalan@opendomo.com>


from elisa.core import common

def get_opendomo_provider():
    """ We will communicate with the agent through OpendomoResourceProvider class
    """
    provider_path = 'elisa.plugins.opendomo.resource_provider:OpendomoResourceProvider'
    
    manager = common.application.resource_manager
    #manager.register_component(provider_path)
    provider = manager.get_resource_provider_by_path(provider_path)
    return provider
